#CC = gcc
CC="/home/blanchard/Robot/svn/armadeus/buildroot/build_armv4t/staging_dir/usr/bin/arm-linux-gcc"

INSTALL_DIR="/home/blanchard/Robot/svn/armadeus/buildroot/project_build_arm/armadeus/root/usr/bin/"

COMPOPT = -O3 -Wall

CFLAGS = $(COMPOPT) -I/home/blanchard/Robot/svn/armadeus/buildroot/project_build_armv4t/apf9328/linux-2.6.27.13/arch/arm/include/

LDFLAGS = 

#OBJS =  main.armadeus.16bits.o
OBJS =  main.armadeus.o

SOURCE = .

EXEC = test_camera.Armadeus

#IMAGE = TEST_IMG.JPG

$(EXEC): $(OBJS)
	$(CC) $(OBJS) $(COMPOPT) $(LDFLAGS) -o $(EXEC);

%.o:$(SOURCE)/%.c $(SOURCE)/%.h
	$(CC) $(CFLAGS) $< -c -o $@

%.o:$(SOURCE)/%.c
	$(CC) $(CFLAGS) $< -c -o $@

exec: $(EXEC)
#  echo "Let's rock!"

install: $(EXEC)
	cp $(EXEC)  $(INSTALL_DIR)

clean:
	rm -f $(OBJS) $(SOURCE)/*~ $(SOURCE)/\#*\# $(EXEC)

distclean:
	rm -f $(OBJS) $(SOURCE)/*~ $(SOURCE)/\#*\#

